package svc

import (
	"github.com/zeromicro/go-zero/zrpc"
	"project/projectapi/internal/config"
	"project/projectrpc/projectrpcclient"
)

type ServiceContext struct {
	Config     config.Config
	ProjectRpc projectrpcclient.Projectrpc
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:     c,
		ProjectRpc: projectrpcclient.NewProjectrpc(zrpc.MustNewClient(c.ProjectRpc)),
	}
}
